<template>
    <el-card class="container">
        <info-project :id="id" @basic-info="handleBasicInfo" />
        <detail-pay class="mg-t-20" :id="id" :basic-info="basicInfo" />
    </el-card>
</template>

<script lang="ts">
import { defineComponent } from 'vue'
import { ElMessageBox, ElMessage } from 'element-plus'
import infoProject from './components/info-project.vue'
import detailPay from './components/detail-pay.vue'
export default defineComponent({
    components: {
        infoProject,
        detailPay
    },
    data() {
        return {
            id: '',
            basicInfo: {}
        }
    },
    mounted() {
        if (this.$route.query?.id) {
            this.id = atob(this.$route.query.id as any)
        }
    },
    methods: {
        handleBasicInfo(data: any) {
            this.basicInfo = data
        }
    }
})
</script>

<style scoped lang="stylus">

</style>
